/*
 * Date：10/23/18 10:08 PM
 * Author: guomw
 *
 */

package org.elanfox.intellicommunity.biz.repository.resident;

import org.elanfox.intellicommunity.biz.entity.resident.WorkerStructureRelPO;
import org.elanfox.intellicommunity.data.base.base.JpaSearchableRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 工作人员负责楼层Repository
 *
 * @author loutianxi
 * @date 2019-12-04
 */
@Repository
public interface WorkerStructureRepository extends JpaSearchableRepository<WorkerStructureRelPO, Integer> {

    void deleteByWorkerId(Integer workerId);

    List<WorkerStructureRelPO> findByWorkerId(Integer workerId);
}
